package baseClass;

import android.graphics.Canvas;
import android.util.Log;
import java.util.ArrayList;

public class Scene
{
  public ArrayList<Layer> SubLayer = new ArrayList();
  private int Subnum = 0;
  
  public void AddLayer(Layer paramLayer)
  {
    this.SubLayer.add(paramLayer);
    this.Subnum += 1;
  }
  
  public void AlwaysRun()
  {
    update();
    int i = 0;
    for (;;)
    {
      if (i >= this.Subnum) {
        return;
      }
      ((Layer)this.SubLayer.get(i)).AlwaysRun();
      i += 1;
    }
  }
  
  public void ShowLayer(Canvas paramCanvas)
  {
    int i;
    if (this.Subnum != 0) {
      i = 0;
    }
    for (;;)
    {
      if (i >= this.Subnum) {
        return;
      }
      ((Layer)this.SubLayer.get(i)).ShowSprite(paramCanvas);
      i += 1;
    }
  }
  
  public int getSubnum()
  {
    return this.Subnum;
  }
  
  public void recycleBitmap()
  {
    int i = 0;
    for (;;)
    {
      if (i >= this.Subnum) {
        return;
      }
      ((Layer)this.SubLayer.get(i)).recycleBitmap();
      i += 1;
    }
  }
  
  public void sceneChange()
  {
    int j = 0;
    int i = 0;
    if (i >= this.Subnum)
    {
      Log.v("test", "Scene Changed And Sprite Number : " + j);
      sceneStart();
      i = 0;
    }
    for (;;)
    {
      if (i >= this.Subnum)
      {
        return;
        j += ((Layer)this.SubLayer.get(i)).getSubnum();
        i += 1;
        break;
      }
      ((Layer)this.SubLayer.get(i)).sceneChange();
      i += 1;
    }
  }
  
  public void sceneStart() {}
  
  public void update() {}
}


/* Location:           D:\Tool\AndroidKiller_v1.3.1\projects\petdesigner\ProjectSrc\classes-dex2jar.jar
 * Qualified Name:     baseClass.Scene
 * JD-Core Version:    0.7.0.1
 */